package fr.umlv.ig.event;

import fr.umlv.ig.model.Itinerary;

/**
 * Represents event where the source is a ItineraryEvent.
 * @author jenseric
 * @author william
 *
 */
@SuppressWarnings("serial")
public class ItineraryEvent extends EventObjectWithType {
	

	public static final int ITINERARY_ADDED = 1;

	/**
	 * Initializes a itnieraryEvent.
	 * @param itinerary the itinerary concerned by the event.
	 * @param eventType the event type.
	 */
	protected ItineraryEvent(Itinerary itinerary, int eventType) {
		super(itinerary, eventType);
		if(eventType != ITINERARY_ADDED) {
			throw new IllegalArgumentException("Bad ItineraryEvent type: "+eventType);
		}		
	}

}
